<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Navo Portable Library: Base64</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Navo Portable Library&#160;<span id="projectnumber">Ver 1.0.20120827</span></div>
   <div id="projectbrief">Provides generic platform independent facilities.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>数据结构</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">数据结构</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<h1>Base64</h1>  </div>
<div class="ingroups"><a class="el" href="group___xE5_xAF_xB9_xE7_xA7_xB0_xE5_x8A_xA0_xE5_xAF_x86.html">对称加密</a></div></div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
数据结构</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbase64__key.html">base64_key</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Base64密钥  <a href="structbase64__key.html#_details">更多...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
宏定义</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Base64.html#ga133e771c82b3473096ad3ee145cb84bb">BASE64_DEFAULT_KEY</a>()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Base64默认密钥  <a href="#ga133e771c82b3473096ad3ee145cb84bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5050e0d4016aed876526c1e381fe11df"></a><!-- doxytag: member="Base64::BASE64_KEY" ref="ga5050e0d4016aed876526c1e381fe11df" args="(name)" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Base64.html#ga5050e0d4016aed876526c1e381fe11df">BASE64_KEY</a>(name)&#160;&#160;&#160;<a class="el" href="structbase64__key.html">base64_key</a> name = {BASE64_DEFAULT_KEY(), {0}}</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">定义名为name的Base64密钥 <br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
函数</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NV_API void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Base64.html#ga6b35759edb047799ce26f6fa041331d2">base64_set_key</a> (<a class="el" href="structbase64__key.html">base64_key</a> *key, void *src_key)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">设置Base64密钥  <a href="#ga6b35759edb047799ce26f6fa041331d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5939bd0c85183239fa30ad63d00dd0eb"></a><!-- doxytag: member="Base64::__base64_encrypt" ref="ga5939bd0c85183239fa30ad63d00dd0eb" args="(uint8_t *esk, uint8_t *dst, uint8_t *src, size_t cnt)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__base64_encrypt</b> (<a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *esk, <a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *dst, <a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *src, size_t cnt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3f5fbc7af876411499729339e7452dd9"></a><!-- doxytag: member="Base64::base64_encrypt" ref="ga3f5fbc7af876411499729339e7452dd9" args="(base64_key *key, void *dst, void *src, size_t cnt)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>base64_encrypt</b> (<a class="el" href="structbase64__key.html">base64_key</a> *key, void *dst, void *src, size_t cnt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga518d3ba0c3449f54ea8b953ed986f0b3"></a><!-- doxytag: member="Base64::__base64_decrypt" ref="ga518d3ba0c3449f54ea8b953ed986f0b3" args="(uint8_t *dsk, uint8_t *dst, uint8_t *src, size_t cnt)" -->
NV_API void&#160;</td><td class="memItemRight" valign="bottom"><b>__base64_decrypt</b> (<a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *dsk, <a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *dst, <a class="el" href="group___xE6_x95_xB4_xE5_x9E_x8B_xE5_xAE_x9A_xE4_xB9_x89.html#gae1affc9ca37cfb624959c866a73f83c2">uint8_t</a> *src, size_t cnt)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__Base64.html#ga7394390306965f2bd67e5364871effd7">base64_decrypt</a> (<a class="el" href="structbase64__key.html">base64_key</a> *key, void *dst, void *src, size_t cnt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Base64解密  <a href="#ga7394390306965f2bd67e5364871effd7"></a><br/></td></tr>
</table>
<hr/><h2>宏定义文档</h2>
<a class="anchor" id="ga133e771c82b3473096ad3ee145cb84bb"></a><!-- doxytag: member="base64.h::BASE64_DEFAULT_KEY" ref="ga133e771c82b3473096ad3ee145cb84bb" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BASE64_DEFAULT_KEY</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>值:</b><div class="fragment"><pre class="fragment"><span class="stringliteral">&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;</span>    \
    <span class="stringliteral">&quot;abcdefghijklmnopqrstuvwxyz&quot;</span>    \
    <span class="stringliteral">&quot;0123456789+/&quot;</span>
</pre></div>
<p>Base64默认密钥 </p>
<dl class="see"><dt><b>参见:</b></dt><dd><a class="el" href="group__Base64.html#ga6b35759edb047799ce26f6fa041331d2" title="设置Base64密钥">base64_set_key</a> </dd></dl>

<p>在文件<a class="el" href="base64_8h_source.html">base64.h</a>第<a class="el" href="base64_8h_source.html#l00049">49</a>行定义。</p>

</div>
</div>
<hr/><h2>函数文档</h2>
<a class="anchor" id="ga6b35759edb047799ce26f6fa041331d2"></a><!-- doxytag: member="base64.h::base64_set_key" ref="ga6b35759edb047799ce26f6fa041331d2" args="(base64_key *key, void *src_key)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NV_API void base64_set_key </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structbase64__key.html">base64_key</a> *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>src_key</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>设置Base64密钥 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">key</td><td>Base64密钥 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src_key</td><td>64字节原始密钥 </td></tr>
  </table>
  </dd>
</dl>
<dl class="user"><dt><b>示例:</b></dt><dd><div class="fragment"><pre class="fragment">    <a class="code" href="structbase64__key.html" title="Base64密钥">base64_key</a> bkey;

    <span class="comment">// 设置Base64密钥</span>
    <a class="code" href="group__Base64.html#ga6b35759edb047799ce26f6fa041331d2" title="设置Base64密钥">base64_set_key</a>(&amp;bkey, <a class="code" href="group__Base64.html#ga133e771c82b3473096ad3ee145cb84bb" title="Base64默认密钥">BASE64_DEFAULT_KEY</a>());
</pre></div> </dd></dl>

<p>在文件<a class="el" href="base64_8c_source.html">base64.c</a>第<a class="el" href="base64_8c_source.html#l00024">24</a>行定义。</p>

</div>
</div>
<a class="anchor" id="ga7394390306965f2bd67e5364871effd7"></a><!-- doxytag: member="base64.h::base64_decrypt" ref="ga7394390306965f2bd67e5364871effd7" args="(base64_key *key, void *dst, void *src, size_t cnt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static inline void base64_decrypt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structbase64__key.html">base64_key</a> *&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>dst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>cnt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Base64解密 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">key</td><td>Base64密钥 </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">dst</td><td>明文输出缓存 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">src</td><td>密文输入缓存 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">cnt</td><td>密文长度(字节) </td></tr>
  </table>
  </dd>
</dl>

<p>在文件<a class="el" href="base64_8h_source.html">base64.h</a>第<a class="el" href="base64_8h_source.html#l00104">104</a>行定义。</p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>数据结构</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>宏定义</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at 2015年七月16日 星期四 12:00:41 for Navo Portable Library by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
